package com.dbb.entity;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(
		name = "codetype",
		discriminatorType=DiscriminatorType.STRING
)
@DiscriminatorValue("Boot")
public class Codes {
	String id;
	String name;
	
	public Codes() { }
	
	public Codes(String id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	@Id
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
